<!DOCTYPE html>



  


<html class="theme-next mist use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="开发,">










<meta name="description" content="简述再次迁移一下博客，用的阿里的主机用来学习和部署一些东西，快到期了，一晃也用了一年半了，已经有人打电话让我再续费了，于是决定放弃了这个模式。 没有太多时间来维护，另外一个最主要的问题是花钱啊！！！都没什么时间玩了，还花个毛钱，况且阿里的还老是涨价，指望便宜的主机也不是总是有。 ==反正是花钱是不可能再花钱的。== 之前的方案：主机+域名 RMB:（搞活动的主机，现价880）360+60 现在的方">
<meta name="keywords" content="开发">
<meta property="og:type" content="article">
<meta property="og:title" content="Hello World ！新的博客">
<meta property="og:url" content="https://xxyuan.net/2018/11/28/hello-world/index.html">
<meta property="og:site_name" content="晓远Blog">
<meta property="og:description" content="简述再次迁移一下博客，用的阿里的主机用来学习和部署一些东西，快到期了，一晃也用了一年半了，已经有人打电话让我再续费了，于是决定放弃了这个模式。 没有太多时间来维护，另外一个最主要的问题是花钱啊！！！都没什么时间玩了，还花个毛钱，况且阿里的还老是涨价，指望便宜的主机也不是总是有。 ==反正是花钱是不可能再花钱的。== 之前的方案：主机+域名 RMB:（搞活动的主机，现价880）360+60 现在的方">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2019-11-16T14:20:50.178Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hello World ！新的博客">
<meta name="twitter:description" content="简述再次迁移一下博客，用的阿里的主机用来学习和部署一些东西，快到期了，一晃也用了一年半了，已经有人打电话让我再续费了，于是决定放弃了这个模式。 没有太多时间来维护，另外一个最主要的问题是花钱啊！！！都没什么时间玩了，还花个毛钱，况且阿里的还老是涨价，指望便宜的主机也不是总是有。 ==反正是花钱是不可能再花钱的。== 之前的方案：主机+域名 RMB:（搞活动的主机，现价880）360+60 现在的方">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://xxyuan.net/2018/11/28/hello-world/">





  <title>Hello World ！新的博客 | 晓远Blog</title>
  





  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?b7fbd9803fe7b8df6faf867c7b94ce2a";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">晓远Blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://xxyuan.net/2018/11/28/hello-world/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="晓远">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="晓远Blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Hello World ！新的博客</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-11-28T00:38:36+08:00">
                2018-11-28
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/开发/" itemprop="url" rel="index">
                    <span itemprop="name">开发</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h4 id="简述"><a href="#简述" class="headerlink" title="简述"></a>简述</h4><p>再次迁移一下博客，用的阿里的主机用来学习和部署一些东西，快到期了，一晃也用了一年半了，已经有人打电话让我再续费了，于是决定放弃了这个模式。</p>
<p>没有太多时间来维护，另外一个最主要的问题是花钱啊！！！都没什么时间玩了，还花个毛钱，况且阿里的还老是涨价，指望便宜的主机也不是总是有。</p>
<p>==反正是花钱是不可能再花钱的。==</p>
<p>之前的方案：主机+域名 RMB:（搞活动的主机，现价880）360+60</p>
<p>现在的方案：0元或者只需要个域名钱</p>
<p>过几天服务器到期了，让域名解析到这个上面就彻底OK了。</p>
<a id="more"></a>
<h4 id="网站的架构"><a href="#网站的架构" class="headerlink" title="网站的架构;"></a>网站的架构;</h4><blockquote>
<p>hexo + next 主题，其他的配置参考next配置</p>
</blockquote>
<blockquote>
<p>githup的账户，开通一个仓库用来作为page界面，配置关联hexo静态即可完成</p>
</blockquote>
<blockquote>
<p>最后将自己的编辑完毕的东西统一推送到githup上面page界面即可</p>
</blockquote>
<blockquote>
<p>PS:当然可以使用国内的page方案了，githup有时候还是有点慢的，例如gitee也是可以的，但我个人感觉githup更好，毕竟更专业点。</p>
</blockquote>
<h4 id="优缺点"><a href="#优缺点" class="headerlink" title="优缺点"></a>优缺点</h4><h5 id="优点"><a href="#优点" class="headerlink" title="优点:"></a>优点:</h5><blockquote>
<p>不花钱已经是最大的优点了，githup不倒闭你的这个就可以永远用下去，还有人替你维护服务器，免去了自己维护的成本。</p>
</blockquote>
<h5 id="缺点"><a href="#缺点" class="headerlink" title="缺点:"></a>缺点:</h5><blockquote>
<p>1，流量有限制，个人博客也不需要多少流量，够用了。</p>
</blockquote>
<blockquote>
<p>2，没有数据库，只能是静态界面，扩展比较单一，不适合任何一个企业级web网站。</p>
</blockquote>
<blockquote>
<p>3，静态界面的博客网站的构建方案对比WordPress之类的还是有所差距，但个人感觉已经够用了。</p>
</blockquote>
<h4 id="搭建流程"><a href="#搭建流程" class="headerlink" title="搭建流程"></a>搭建流程</h4><p>网上很多教程了，但是感觉不怎么统一，很多只说了一半，但是都比较清晰，这里只介绍步骤，其中细节百度一下吧，它们肯定比我这个更加详细。</p>
<p>1，首先肯定要Hexo搭建一下，使用npm来安装，几步就ok了。</p>
<blockquote>
<p><a href="https://hexo.io/zh-cn/docs/" target="_blank" rel="noopener">https://hexo.io/zh-cn/docs/</a></p>
</blockquote>
<p>2，Hexo安装完毕以后，使用hexo s 来本地运行一下，监听的是4000端口，本地看下效果。</p>
<p>3，本地运行没有问题以后，然后要转到githup上面去配置了，建个仓库配置一下主题，让这个仓库作为io结尾的的page界面，然后为这个仓库配置ssh，便于hexo的推送界面给这个仓库，测试一下githup提供的域名</p>
<p>4，上面的都ok以后先不要着急hexo -d -s 推送到仓库当中，我们需要选择个好看好用一点的主题模板是不是，我使用的是next主题</p>
<blockquote>
<p><a href="http://theme-next.iissnan.com/" target="_blank" rel="noopener">http://theme-next.iissnan.com/</a></p>
</blockquote>
<p>5, 主题下载完毕以后，按照它上面的配置一遍，很多很多功能，基本一个博客需要的应该都有了，很不错。</p>
<p>6，最后，注意，注意，很多失败都是亡于最后一步，这个时候已经要记得修改主配置里面的域名和root，不然本地查看没有问题，但是你一推送上去就完蛋。</p>
<p>完毕，收工！</p>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/开发/" rel="tag"># 开发</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2018/11/28/Demo/" rel="next" title="Demo测试">
                <i class="fa fa-chevron-left"></i> Demo测试
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2018/11/29/《银魂》--节操？是什么啊！/" rel="prev" title="银魂-节操！是什么？">
                银魂-节操！是什么？ <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">晓远</p>
              <p class="site-description motion-element" itemprop="description">这个一个关于博客的个人网站</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">51</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">3</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">37</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-4"><a class="nav-link" href="#简述"><span class="nav-number">1.</span> <span class="nav-text">简述</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#网站的架构"><span class="nav-number">2.</span> <span class="nav-text">网站的架构;</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#优缺点"><span class="nav-number">3.</span> <span class="nav-text">优缺点</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#优点"><span class="nav-number">3.1.</span> <span class="nav-text">优点:</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#缺点"><span class="nav-number">3.2.</span> <span class="nav-text">缺点:</span></a></li></ol></li><li class="nav-item nav-level-4"><a class="nav-link" href="#搭建流程"><span class="nav-number">4.</span> <span class="nav-text">搭建流程</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-snowflake-o"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">晓远</span>

  
</div>









        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
